Sensor fusion

ABSTRACT

Accurate and reliable techniques for determining a current status of an accessory device in relation to an electronic device are described.

CROSS REFERENCE TO RELATED APPLICATIONS

This application is a Continuation application and claims priority toU.S. patent application Ser. No. 13/037,271, filed Feb. 28, 2011, whichclaims priority under 35 U.S.C. 119(e) to (i) U.S. Provisional PatentApplication No. 61/384,179, filed Sep. 17, 2010 and entitled “Apparatusand Method for Magnetic Attachment” by Lauder et al., and (ii) U.S.Provisional Patent Application No. 61/438,220, filed Jan. 31, 2011 andentitled “Magnetic Attachment Unit and Methods of Use” by Lauder et al.,each of which are incorporated by reference in their entirety for allpurposes. This application is also related to U.S. patent applicationSer. No. 12/971,411, filed Dec. 17, 2010 and entitled “Tablet DeviceHaving a Display Operable in Peek Mode” by Lauder et. al., alsoincorporated by reference in its entirety for all purposes.

FIELD OF THE DESCRIBED EMBODIMENTS

The described embodiments generally relate to portable electronicdevices. More particularly, the present embodiments describe use ofmultiple sensors in combination to confirm a status of an accessorydevice in relation to an electronic device.

DESCRIPTION OF THE RELATED ART

Recent advances in portable computing includes the introduction of handheld electronic devices and computing platforms along the lines of theiPad™ tablet manufactured by Apple Inc. of Cupertino, Calif. Thesehandheld computing devices can be configured such that a substantialportion of the electronic device takes the form of a display used forpresenting visual content leaving little available space for anattachment mechanism that can be used for attaching an accessory device.

When the accessory device takes the form of a cover, the handheldcomputing device can be operable in modes consistent with the presenceof the cover. For example, when the handheld computing device has adisplay, the presence of the cover can render the display unviewable. Inorder to save power, the unviewable display can be rendered temporarilyinoperable until the cover is moved or otherwise repositioned to exposethe display.

Therefore, accurate and reliable techniques for determining a currentstatus of an accessory device in relation to an electronic device towhich it is connected are desired.

SUMMARY OF THE DESCRIBED EMBODIMENTS

This paper describes various embodiments that relate to a system,method, and apparatus for releasably attaching an accessory to anelectronic device.

A consumer electronic product includes at least an electronic device. Inthe described embodiment, the electronic device includes at least aprocessor and a first sensor in communication with the processorarranged to detect a first type stimulus. The first sensor responds tothe first type stimulus by providing a first signal to the processorindicating a first status of an accessory device in relation to theelectronic device. The electronic device also includes at least a secondsensor in communication with the processor arranged to detect a secondtype stimulus. The second sensor responds to the second type stimulus byproviding a second signal to the processor indicating a second status ofthe accessory device in relation to the electronic device. In thedescribed embodiment, when the processor receives the first signal fromthe first sensor, the processor compares the first status indicated bythe first signal and the second status indicated by the second signaland when the processor determines that the indications of the first andsecond status are the same, the processor accepts the first signal,otherwise, the processor ignores the first signal.

In one aspect of the described embodiment, the accessory device is aprotective cover having a flap incorporating a magnetic element and thefirst sensor is a Hall Effect (HFX) sensor. The protective cover ispivotally attached to the electronic device such that in a closedconfiguration the magnetic element in the flap provides a first stimulusin the form of a saturating magnetic field that is detected by the HFXsensor only when the flap is in a closed configuration with respect tothe electronic device. The second sensor is any of at least an ambientlight sensor, a camera, a magnetometer, a multi-touch sensitive surface,an RFID device, and a second Hall Effect sensor.

In another embodiment, a consumer electronic product includes at leastan electronic device and an accessory unit. In the described embodiment,the electronic product includes a processor, a Hall Effect sensor (HFX)in communication with the processor arranged to detect a saturatingmagnetic field and in response to the detected saturating magneticfield, provide a signal to the processor where the processor uses thesignal to alter an operating state of the electronic device. Theelectronic device also includes a second sensor separate and distinctfrom the HFX sensor. The accessory unit includes a body portionpivotally attachable to the electronic device having at least a magneticelement. When the accessory unit is in a closed configuration, an innersurface of the body portion is placed in proximity to the protective toplayer such that the magnetic element presents the saturating magneticfield to the HFX sensor. When the processor receives the signal from theHFX sensor indicating the presence of the saturating magnetic field, theprocessor queries the second sensor to corroborate the signal receivedfrom the HFX sensor is consistent with the cover being in the closedconfiguration, the processor accepts the signal from the HFX sensor,otherwise the processor ignores the signal from the HFX sensor.

In yet another embodiment, in a consumer electronic product thatincludes an electronic device, a method performed by a processor in theelectronic device is described. The method can be carried out byperforming at least the following operations: detecting a first typestimulus at a first sensor in communication with the processor,receiving a first signal from the first sensor at the processor, thefirst signal indicating a first status of an accessory device inrelation to the electronic device, detecting a second type stimulus at asecond sensor in communication with the processor, receiving a secondsignal from the second sensor at the processor, the second signalindicating a second status of the accessory device in relation to theelectronic device, comparing the indication of the first status and theindication of the second status by the processor, and accepting thefirst signal by the processor only when the comparing determines thatthe indications of that the first and second status are the same.

In another embodiment, non-transitory computer readable medium forstoring program code executable by a processor for detecting a state ofa protective cover in relation to an electronic device having aprocessor and at least a first sensor and a second sensor is described.The computer readable medium includes at least computer code forreceiving a signal from the first sensor indicating that the protectivecover is in a closed configuration with respect to the electronicdevice, computer code for querying the second sensor, computer code forreceiving information from the second sensor, and computer code forignoring the signal from the first sensor when the information from thesecond sensor does not corroborate the signal from the first sensor;otherwise, accepting the signal from the first sensor.

In one aspect of the described embodiment, the protective cover includesa flap incorporating a magnetic element and the first sensor is a HallEffect sensor. The protective cover is pivotally attached to theelectronic device such that in a closed configuration the magneticelement in the flap provides a first stimulus in the form of asaturating magnetic field that is detected by the HFX sensor only whenthe flap is in a closed configuration with respect to the electronicdevice. The second sensor is any of at least an ambient light sensor, acamera, a magnetometer, a multi-touch sensitive surface, an RFID device,and a second Hall Effect sensor.

Other aspects and advantages of the invention will become apparent fromthe following detailed description taken in conjunction with theaccompanying drawings which illustrate, by way of example, theprinciples of the described embodiments.

BRIEF DESCRIPTION OF THE DRAWINGS

The invention will be readily understood by the following detaileddescription in conjunction with the accompanying drawings, wherein likereference numerals designate like structural elements, and in which:

FIG. 1 shows a top perspective view of an electronic device inaccordance with the described embodiments.

FIG. 2A shows a first perspective view of the electronic device in theform of a tablet device and the accessory device in the form of aprotective cover.

FIG. 2B shows a second perspective view of the electronic device in theform of a tablet device and the accessory device in the form of aprotective cover.

FIG. 3A shows a closed configuration of the cooperating system formed bythe tablet device and protective cover shown in FIGS. 2A and 2B.

FIG. 3B shows an open configuration of the cooperating system shown inFIG. 3A.

FIG. 4 shows a top view of an embodiment of a segmented cover assembly.

FIGS. 5A and 5B illustrate representative magnetic interaction betweenand onboard compass and magnetic elements in a flap as part of anaccessory unit.

FIGS. 6A and 6B graphically illustrate various magnetic offsets that canbe detected by onboard compass.

FIG. 7 shows a flowchart detailing process for confirming an indicationfrom a Hall Effect sensor of the state of protective cover in relationto an electronic device.

FIG. 8 shows a flowchart detailing process for using an ambient lightsensor (ALS) in combination with a Hall Effect sensor to corroborate astate of a protective cover with regards to an electronic device.

FIG. 9 shows a flowchart detailing process for using a camera incombination with a Hall Effect sensor to corroborate a state of aprotective cover with regards to an electronic device.

FIG. 10 shows a flowchart detailing process for using a magnetometer inthe form of a compass in combination with a Hall Effect sensor tocorroborate a state of a protective cover with regards to an electronicdevice.

FIG. 11 shows a flowchart detailing process for using a multi-touch (MT)sensitive surface in combination with a Hall Effect sensor tocorroborate a state of a protective cover with regards to an electronicdevice.

FIG. 12 shows a flowchart detailing process for using a RFID device incombination with a Hall Effect sensor to corroborate a state of aprotective cover with regards to an electronic device.

FIG. 13 shows a flowchart detailing process for determining a state of aprotective cover in relation to an electronic device using a dynamicmodel of a magnetic field to corroborate a state of a protective coverwith regards to an electronic device.

FIG. 14 is a block diagram of an arrangement of functional modulesutilized by a portable media device.

FIG. 15 is a block diagram of an electronic device suitable for use withthe described embodiments.

DETAILED DESCRIPTION OF SELECTED EMBODIMENTS

Reference will now be made in detail to representative embodimentsillustrated in the accompanying drawings. It should be understood thatthe following descriptions are not intended to limit the embodiments toone preferred embodiment. To the contrary, it is intended to coveralternatives, modifications, and equivalents as can be included withinthe spirit and scope of the described embodiments as defined by theappended claims.

The following description relates in general to a mechanism that can beused to confirm a status of an accessory device in relation to anassociated host device having operating states consistent with theaccessory device status. More specifically, when the accessory device isa protective cover having a size and shape in accordance with theelectronic device, the protective cover can have a hinge portion andflap pivotally attached to the hinge portion. The flap can rotate aboutthe hinge portion in one direction to bring the flap in substantialcontact with the electronic device in a closed configuration.Conversely, the flap can pivot about the hinge assembly in the otherdirection to expose the electronic device in an open configuration. Inone embodiment, the electronic device can operate in a closed cover modewhen the protective cover is detected to be in the closed configurationand an open cover mode when the cover is detected to be in the openconfiguration. The protective cover can provide protection to certainaspects (such as a display) of the electronic device while enhancing theoverall look and feel of the electronic device. The protective cover caninclude at least a hinge portion. The hinge portion can be magneticallyattached to the electronic device using a magnetic attachment feature.The hinge portion can be pivotally connected to a flap that can beplaced upon a portion of the electronic device to be protected. Theprotective cover can include electronic circuits or other elements(passive or active) that can cooperate with electronic elements in theelectronic device. As part of that cooperation, signals can be passedbetween the protective cover and the electronic device that can, forexample, be used to modify operations of the electronic device,operations of electronic circuits or elements of the protective cover,and so forth.

The electronic device can include a magnetometer circuit that can beused to detect the directional magnitude of an external magnetic field.In this regard, the magnetometer can function as a compass arranged toindicate a directional bearing and magnitude of an external magneticfield. In this way, the directional heading of the electronic device inrelation to the external magnetic field can be deduced. For example,when the external magnetic field is essentially the Earth's magneticfield, the onboard compass can provide an indication of the directionalbearing of the electronic device in relation to the magnetic pole of theEarth. In one embodiment, the protective cover includes a flap havingmagnetic elements. The magnetic elements can include magnetic elementsused for magnetic attachment and magnetic elements used to trigger aHall Effect (HFX) sensor in the electronic device. In this situation,the onboard compass can be used to detect the presence of the flap basedupon the effect of the magnetic elements on the onboard compass.

For example, the onboard compass can detect that the flap ismagnetically attached to the electronic device based upon a first staticmagnetic deviation, also referred to as a hard magnetic offset. Thefirst static magnetic deviation can be based upon the presence ofmagnetic elements included in the flap of the protective cover used totrigger the HFX sensor as well as magnetic elements used to magneticallyattach the flap and the electronic device. In another embodiment, thecompass can detect a dynamic magnetic displacement in accordance withmovement of the magnetic elements in the flap as the flap rotates aboutthe pivot axis of the hinge assembly. The dynamic magnetic displacementcan be used to determine if the flap is in motion relative to theonboard compass. In one embodiment, the relative displacement of theflap and the electronic device can be deduced from data received in realtime from an accelerometer and gyroscope. The data from theaccelerometer and gyroscope can be related to the spatial orientation ofthe electronic device. The spatial orientation data and magneticreadings from the onboard compass can be used to determine if themagnetic elements in the flap are moving in relation to the electronicdevice providing an indication that the flap is rotating about the pivotline of the hinge assembly.

In one embodiment, the electronic device can have a touch sensitivesurface that can react to a plurality of conductive elementsincorporated into the protective cover near an inner layer of theprotective cover. The plurality of conductive elements can be groundedwhen the protective cover is magnetically attached to the electronicdevice. In one embodiment, the conductive elements can be arranged in apre-determined and therefore recognizable pattern. In this way, when aninner layer of the protective cover includes elements capable ofinteracting with the touch sensitive surface, the elements can bearranged in a pre-determined pattern in order to assist the electronicdevice in detecting the current position of the protective cover. Forexample, in one embodiment, the touch sensitive surface can becapacitive in nature in which case the embedded elements in theprotective cover can be formed of conductive material such as metalalong the lines of aluminum. The conductive elements can be grounded inorder to increase a capacitive signal to noise ratio of the signalgenerated by the interaction between capacitive touch sensitive surfaceand the capacitive embedded elements.

The magnetic elements in the flap portion can interact with amagnetically sensitive circuit incorporated into the electronic device.The magnetically sensitive circuit can in one embodiment take the formof the HFX sensor that can detect the presence of an extrinsic magneticfield provided by the magnetic element in the protective cover. Itshould be noted, however, that in order to trigger the HFX sensor, thedetected magnetic field must saturate the HFX sensor. In this way, thelikelihood that the HFX sensor provides a false indication that theprotective cover is enclosing the electronic device is greatly reduced.For example, the relatively weak magnetic field strength associated withthe Earth's magnetic field is insufficient to saturate the HFX sensorthereby triggering a false indication of the protective cover status.

When the HFX sensor is exposed to a saturating magnetic field (i.e., oneof sufficient magnetic strength to saturate the HFX sensor), the HFXsensor can respond to the saturating magnetic field by generating abinary (i.e., ON/OFF) signal. One of the advantages of using the HFXsensor (in addition to reducing the likelihood of a false cover statusindication) is that the amount of power required to operate the HFXsensor is relatively small and therefore does not present an undue powerdrain on the electronic device. In any case, when the HFX sensor isexposed to the saturating magnetic field, the HFX sensor can issue asignal. The signal can be received by a processing unit and used toalter an operating state of the electronic device. It should be noted,however, that any appropriate sensing device in addition to or in placeof the HFX sensor can be used to detect the status of the protectivecover in relation to the electronic device. For example, a magnetometer(a form of which can be used as a compass) can be used in lieu of theHFX sensor. In contrast to the HFX sensor, the magnetometer issubstantially more sensitive to an extrinsic magnetic field and willrespond accordingly by providing a more continuous (analog) signalrepresentative of the extrinsic magnetic field requiring a greateramount of power. Accordingly, dynamic magnetic activity can be detectedby the magnetometer (indicative of, for example, relative motions of themagnetometer and a magnetic source) by periodically sampling the signalfrom the magnetometer. The sampled data can be used, for example, toprovide a relative position of the magnetic elements in the protectivecover in relation to the magnetometer in the electronic device.

Accordingly, the protective cover can include a magnetic element such asa permanent magnet having a magnetic field that can cause the HFX sensorto generate the signal. The magnetic element can be positioned on theprotective cover in a location that triggers the HFX sensor to generatethe signal when the cover is placed on or in proximity to a surface ofthe electronic device. The signal can indicate that the protective coveris in a predetermined position relative to the electronic device thatcan result in a change in an operating state of the electronic device.For example, with the portion of the protective cover having themagnetic element in proximity to the HFX sensor, the magnetic field fromthe magnetic element can cause the HFX sensor to generate a signal. Thesignal can, in turn, be used to alter the operating state to oneconsistent with a portion of the electronic device being covered. Forexample, when the electronic device includes a display, the protectivecover can be used to cover the display and therefore render itunviewable and therefore the display can be disabled. On the other hand,when the portion of the protective cover having the magnetic element isremoved to the point where the HFX sensor no longer responds to themagnetic field of the magnetic element, then the HFX sensor can generateanother signal. The other signal can result in the electronic deviceentering another, different, operating state consistent with at least aportion of the display being uncovered and viewable and thereforeenabled for displaying visual content.

However, the HFX sensor can be triggered by any magnetic field strongenough to saturate the HFX sensor thereby potentially providing a falseindication of the presence of the protective cover. Therefore in orderto avoid such false indications, when the HFX sensor is triggered,additional sensors can be queried in order to confirm that indicationprovided by the HFX sensor that the protective cover is in the closedconfiguration. In one embodiment, a triggering event at the HFX sensorindicating that the cover is in the closed configuration can also causethe electronic device to query at least another sensor in order toconfirm the closed configuration indicated by the HFX sensor.

In one embodiment, an ambient light sensor (ALS) can be queried by theelectronic device. The ALS can include a photosensitive circuit (such asa photodiode) that can respond to varying levels of incident light,typically in the form of ambient light. In one embodiment, the ALS candetect ambient light. The ALS can, however, be configured to respond tothe detection of the ambient light in many ways. For example, the ALScan respond by providing a signal whenever the photosensitive circuitwithin the ALS detects an amount (i.e., intensity) of ambient lightgreater than a pre-defined amount of ambient light. In other words, thethreshold amount of ambient light can be a defined threshold level. Forexample, a threshold amount of “x” lumens can represent an amount ofambient light consistent with the protective cover being in a closedconfiguration where the value “x” takes into account light leaking infrom around the edges of the protective cover. Of course, the thresholdamount of ambient light can be set to any amount deemed appropriate. Forexample, in some cases where the electronic device is in brightenvironment such as daylight, the amount of light leakage can be muchhigher than would be expected in darker conditions. Therefore, theamount of light leaking around the edges of the protective cover can besubstantially greater and therefore, the threshold amount of lightconsistent with the protective cover being in the closed configurationcan increased to take this fact into account.

In another embodiment, the threshold amount can be consistent with adifferential change in ambient light detected by the photosensitivecircuit in the ALS. For example, in those situations where electronicdevice is in a bright environment (such as outdoors in daylight), therecan be substantial amount of light leakage when the protective cover isin fact closed. However, in order to reduce uncertainties related tojust how much light leakage there really is, the ALS can be configuredto provide a signal based upon a differential change in the amount oflight detected by the photosensitive circuit within the ALS. Forexample, when the protective cover is open, the ALS can detect an amountof light represented by “y₁” lumens. However, when the protective coveris closed, the amount of light detected by the photosensitive circuit inthe ALS can change from “y₁” to “y₂” lumens. Only in those situationswhere the difference in the amount of light detected (i.e., Δy=abs(y₁−y₂)) is greater than a predetermined value, will the ALS provide theappropriate signal indicating that the protective cover is in the closedconfiguration. The advantage to this approach lies in the fact thatlight leakage values are difficult to deduce and therefore by relyingupon a well-defined change in detected ambient light a more accurate androbust indication of the status of the protective cover in relation tothe electronic device can be forthcoming.

Therefore, by using the ALS, the electronic device can corroborate theindication of the status of the protective cover provided by the HFXsensor. In this way, if the ALS corroborates the indication from the HFXsensor by detecting an amount of ambient light consistent with theprotective cover being in the closed configuration, the electronicdevice can accept the indication from the HFX sensor and alter theoperating state of the electronic device accordingly. However, if theamount of ambient light is not consistent with the signal from the HFXsensor indicating that the protective cover is in the closed,configuration, the electronic device can query another sensor in orderto obtain yet another data point to be used in evaluating the signalfrom the HFX sensor or more simply can ignore the indication from theHFX sensor altogether thereby presuming that the cover is not fullycovering the electronic device and therefore the operating state of theelectronic device will not be altered to one consistent with theelectronic device being fully covered. If, however, the ALS detects anamount of light that corroborates the indication from the Hall Effect,then the electronic device can accept the indication from the HFX sensorthat the protective cover is in the closed configuration and can therebyrespond accordingly.

In another embodiment, a camera can be activated and based upon a typeof image captured by the camera, can be used to corroborate theindication provided by the HFX sensor that the cover is closed. Forexample, when the cover is closed, the camera can capture an image thatis essentially black (or very low luminance value). However, if theelectronic device is located within dark environment such as a darkroom, outdoors at night with little or no moonlight or other externallight sources, and so on, what little external illumination there is(such as from the display) can provide sufficient illumination (on theend user's face for example) for the camera to capture an image. In oneembodiment, the captured image can be characterized for an overallluminance value or luminance histogram which can be used to determine ifthe cover is fully closed or partially closed. For example, even withthe cover fully closed, there may be some light leakage that can becaptured by the camera resulting in a low luminance captured image.However, in another embodiment, the camera can be adjusted in such a waythe unless there is sufficient light on the image capture device withinthe camera, there will be no image registered by the camera based upon,for example, a defined specification for light leakage. If, however, animage is captured by the camera, by evaluating the overall luminancevalue of the captured image (less than a threshold luminance value forexample), the position of the protective cover can be estimated and usedto corroborate (or not) the indication from the HFX sensor.

In another embodiment, a magnetometer in the form of an onboard compasscan be used to detect the presence of a hard magnetic offset consistentwith the magnetic element embedded in the protective cover in place ator near the HFX sensor. In this embodiment, the presence of the hardmagnetic offset can be used to confirm the indication from the HFXsensor of the closed cover state. On the other hand, the absence of thehard magnetic offset can be used by the electronic device to decide thatthe indication from the HFX sensor is not accurate with regards to thestate of the protective cover and can therefore be ignored, or otheractions such as querying another sensor can be undertaken.

It should also be noted that magnetic materials included in theprotective cover can affect the performance of the magnetometer such asthe onboard compass. In particular, the basic operations of the onboardcompass (embodied as instructions executable by a processor or otherappropriate circuit) can be altered by the presence of the magneticmaterials in the protective cover. In particular, the motion of theprotective cover can be detected by the onboard compass as a change inmagnetic field strength and direction that can result in an “error”since the onboard compass will experience a dynamic offset based uponthe positional change in the protective cover. For example, when thecover is going from the open to closed configuration, the dynamic offsetat the onboard compass can increase due to the fact that the magneticelements within the protective cover are moving closer to themagnetometer and are therefore inducing a greater offset value in thereadings of the onboard compass (of course, just the opposite occurswhen the cover status changes from closed to open).

The maximum offset, or differential in compass heading, experienced bythe onboard compass that can be induced by the change in position of themagnetic element in the protective cover is a function of the change inthe magnitude of the magnetic field as seen by the magnetic sensorassociated with the onboard compass when the position of the protectivecover changes as well as the horizontal strength of the externalmagnetic field. In order to compensate for the offset induced by themotion of the protective cover (more specifically the magnetic elementsin the protective cover), the onboard compass can utilize a model of themaximum change in magnetic field magnitude that the onboard compass candetect as a function of change in cover position. In this way, by usingboth the model of the maximum change in magnetic field magnitude as afunction of cover position and a current estimate of the magnitude ofthe horizontal component of the external magnetic field, the electronicdevice can estimate a maximum change in compass heading likely to beinduced by the relative change in position of the protective cover inrelation to the electronic device.

Accordingly, an accelerometer and gyroscope incorporated within theelectronic device can be used in conjunction with the compass toevaluate a dynamic magnetic signature of changes in detected externalmagnetic field. The accelerometer and gyroscope can provide, in realtime, the spatial position and rotation of the electronic device and thecompass can provide an indication, again in real time, of changes inexternal magnetic field. The readings from the accelerometer andgyroscope and the compass can be used together and compared to a modelof the motion of the magnetic elements in relation to the electronicdevice and, in turn, be used to evaluate the likelihood that the coveris present and moving in relation to the electronic device (by way ofthe compass).

These and other embodiments are discussed below with reference to FIGS.1-15. However, those skilled in the art will readily appreciate that thedetailed description given herein with respect to these figures is forexplanatory purposes only and should not be construed as limiting. Forthe remainder of this discussion, a first and second object eachsuitably configured to magnetically attach to each other in accordancewith the described embodiments will be described. It should be noted,however, that any number and type of suitably configured objects can bemagnetically attached to each other in a precise and repeatable manner.In particular, for simplicity and clarity, for the remainder of thisdiscussion, the first object is presumed to take the form of anelectronic device and in particular a handheld electronic device.

The electronic device can take many forms. For the remainder of thisdiscussion, the electronic device is described in terms of a handheldportable computing device. Accordingly, FIG. 1 shows a top perspectiveview of electronic device 10 in accordance with the describedembodiments. Electronic device 10 can process data and more particularlymedia data such as audio, visual, images, etc. By way of example,electronic device 10 can generally correspond to a device that canperform as a smart phone, a music player, a game player, a visualplayer, a personal digital assistant (PDA), a tablet computer and thelike. Electronic device 10 can also be hand held. With regards to beinghandheld, electronic device 10 can be held in one hand while beingoperated by the other hand (i.e., no reference surface such as a desktopis needed). Hence, electronic device 10 can be held in one hand whileoperational input commands can be provided by the other hand. Theoperational input commands can include operating a volume switch, a holdswitch, or by providing inputs to a touch sensitive surface such as atouch sensitive display device or a touch pad.

Electronic device 10 can include housing 12. In some embodiments,housing 12 can take the form of a single piece housing formed of anynumber of materials such as plastic or non-magnetic metal which can beforged, molded, or otherwise formed into a desired shape. In those caseswhere electronic device 10 has a metal housing and incorporates radiofrequency (RF) based functionality, a portion of housing 12 can includeradio transparent materials such as ceramic, or plastic. Housing 12 canbe configured to enclose a number of internal components. For example,housing 12 can enclose and support various structural and electricalcomponents (including integrated circuit chips) to provide computingoperations for electronic device 10. The integrated circuits can takethe form of chips, chip sets, or modules any of which can be surfacemounted to a printed circuit board, or PCB, or other support structure.For example, a main logic board (MLB) can have integrated circuitsmounted thereon that can include at least a microprocessor,semi-conductor memory (such as FLASH), and various support circuits andso on. Housing 12 can include opening 14 for placing internal componentsand as necessary can be sized to accommodate display assembly forpresenting visual content, the display assembly being covered andprotected by cover layer 16. In some cases, the display assembly can betouch sensitive allowing tactile inputs that can be used to providecontrol signals to electronic device 10. In some cases, the displayassembly may be a large prominent display area that covers a majority ofthe real estate on the front of the electronic device.

Electronic device 10 can include a magnetic attachment system that canbe used to magnetically attach electronic device 10 to at least oneother suitably configured object. The magnetic attachment system caninclude a number of magnetic attachment features distributed within andin some cases connected to housing 12. For example, the magneticattachment system can include first magnetic attachment feature 18 andsecond magnetic attachment feature 20 located on different sides ofelectronic device 10. In particular, first magnetic attachment feature18 can be located in proximity to side wall 12 a of housing 12. Secondmagnetic attachment feature 20 can be located within opening 14 nearside wall 12 b of housing 12. In those embodiments where electronicdevice 10 includes a display with cover glass substantially fillingopening 14, second attachment feature 20 can be placed beneath the coverlayer.

The placement of first magnetic attachment feature 18 at side wall 12 acan facilitate the use of magnetic attachment feature 18 to magneticallyattach electronic device 10 to another suitably configured object suchas another electronic device or an accessory device. Accordingly,without loss of generality, first magnetic attachment feature 18 willhenceforth be referred to as device attachment feature 18. The placementof second magnetic attachment feature 20, on the other hand, canfacilitate the use of second magnetic attachment feature 20 to secureaspects of another device attached to electronic device 10 by way ofdevice attachment feature 18. In this way, the overall attachmentbetween the other device and electronic device 10 can be more securethan attaching through first attachment feature 18 alone. Accordingly,and again without loss of generality, second attachment feature 20 willhenceforth be referred to as securing attachment feature 20. Securingattachment feature 20 can include one or more of magnetic elements 22.When a plurality of magnetic elements is used, the arrangement of theplurality of magnetic elements can be widely varied and can magneticallyinteract with a cooperating feature on another device. In oneembodiment, the plurality of magnetic elements associated with securingfeature 20 can assist in securing at least a portion of another deviceotherwise attached to electronic device 10 by way of device attachmentfeature 18. Electronic device 10 can also include Hall Effect sensor 24and magnetometer circuit 26 in the form of onboard compass 26.

The remainder of this discussion will describe particular embodiments ofdevices that can use the magnetic attachment system. In particular, FIG.2A and FIG. 2B show electronic device 100 presented in terms of tabletdevice 100 and accessory device 200 is shown as protective cover 200each in perspective top views. These elements may generally correspondto any of those previously mentioned. In particular, FIGS. 2A and 2Bshows two perspective views of tablet device 100 and protective cover200 in the open configuration. For example, FIG. 2A shows deviceattachment feature 108 included in tablet device 100 and itsrelationship to tablet device 100. FIG. 2B, on the other hand, is theview presented in FIG. 2A rotated about 180° to provide a second view ofattachment feature 202 and its relationship with protective cover 200.

Tablet device 100 can take the form of a tablet computing device such asthe iPad™ manufactured by Apple Inc. of Cupertino, Calif. Referring nowto FIG. 2A, tablet device 100 can include housing 102 that can encloseand support device attachment feature 108. In order to not interferewith the magnetic field generated by device attachment feature 108, atleast that portion of housing 102 nearest device attachment feature 108can be formed of any number of non-magnetic materials such as plastic ornon-magnetic metal such as aluminum. Housing 102 can also enclose andsupport internally various structural and electrical components(including integrated circuit chips and other circuitry) to providecomputing operations for tablet device 100. Housing 102 can includeopening 104 for placing internal components and can be sized toaccommodate a display assembly or system suitable for providing a userwith at least visual content as for example via a display. In somecases, the display assembly can include touch sensitive capabilitiesproviding the user with the ability to provide tactile inputs to tabletdevice 100 using touch inputs. The display assembly can be formed of anumber of layers including a topmost layer taking the form oftransparent cover glass 106 formed of polycarbonate or other appropriateplastic or highly polished glass. Using highly polished glass, coverglass 106 can substantially fill opening 104.

Although not shown, the display assembly underlying cover glass 106 canbe used to display images using any suitable display technology, such asLCD, LED, OLED, electronic or e-inks, and so on. The display assemblycan be placed and secured within the cavity using a variety ofmechanisms. In one embodiment, the display assembly is snapped into thecavity. It can be placed flush with the adjacent portion of the housing.In this way, the display can present visual content that can includevisual, still images, as well as icons such as graphical user interface(GUI) that can provide information the user (e.g., text, objects,graphics) as well as receive user provided inputs. In some cases,displayed icons can be moved by a user to a more convenient location onthe display.

In some embodiments, a display mask can be applied to, or incorporatedwithin or under cover glass 106. The display mask can be used to accentan unmasked portion of the display used to present visual content andcan be used to make less obvious device attachment feature 108 andsecuring attachment feature 20. Tablet device 100 can include variousports that can be used to pass information between tablet device 100 andthe external environment. In particular, data port 109 can facilitatethe transfer of data and power whereas speakers 110 can be used tooutput audio content. Home button 112 can be used to provide an inputsignal that can be used by a processor included in tablet device 100.The processor can use the signal from home button 112 to alter theoperating state of tablet device 100. For example, home button 112 canbe used to reset a currently active page presented by the displayassembly. Tablet device 100 can also include camera assembly 114arranged to capture an image or images. Tablet device 100 can alsoinclude ambient light sensor 116 (ALS) used to detect a level of ambientlight. In one embodiment ALS 116 can be used to set a brightness levelof the display assembly. For example, in a darker environment withlittle ambient light, the readings from ALS 116 can cause a processor intablet device 100 to dim the display assembly. In a brighterenvironment, the display assembly can be made brighter. Tablet devicecan further include compass 118 used to detect external magnetic fieldsthat can help in the determination of a position of tablet device 100.Tablet device 100 can also include Hall Effect sensor 120 that can beused to detect the presence of a magnetic element in when cover 200 isplaced on top of tablet device 100 in a closed configuration. Anaccelerometer and gyroscope (not shown) can determine any dynamicchanges in the position and orientation of tablet device 100 in realtime.

Protective cover 200 can have a look and feel that complements that ofthe tablet device 100 adding to overall look and feel of tablet device100. Protective cover 200 is shown in FIGS. 2A and 2B attached to tabletdevice 100 in an open configuration in which cover glass 106 is fullyviewable. Protective cover 200 can include flap 202. In one embodiment,flap 202 can have a size and shape in accordance with cover glass 106.Flap 202 can be pivotally connected to accessory attachment feature 204by way of hinge assembly 206 each shown in FIG. 2B. In this way, flap202 can rotate about pivot line 211. The magnetic attachment forcebetween attachment feature 204 and device attachment feature 108 canmaintain protective cover 200 and tablet device 100 in a properorientation and placement vis-a-vis flap 202 and cover glass 106. Byproper orientation it is meant that protective cover 200 can onlyproperly attach to tablet device 100 having flap 202 and cover glass 106aligned in a mating engagement. The mating arrangement between coverglass 106 and flap 202 is such that flap 202 covers substantially all ofcover glass 106 when flap 202 is placed in contact with cover glass 106as shown in FIG. 3A.

Flap 202 can be pivotally connected to hinge assembly 206 that, in turn,can be connected to attachment feature 204. Hinge assembly 206 can, inturn, be coupled to electronic device 100 by way of accessory attachmentfeature 204. In this way, the flap 202 can be used as a protective coverto protect aspects of electronic device 100 such as a display cover 106.Flap 202 can be formed of various materials such as plastic, cloth, andso forth. Flap 202 can be segmented in such a way that a segment of theflap can be lifted to expose a corresponding portion of the display.Flap 202 can also include a functional element that can cooperate with acorresponding functional element in electronic device 100. In this way,manipulating flap 202 can result in an alteration in the operation ofelectronic device 100.

Flap 202 can include magnetic material. For example, magnetic elements207 can be used to magnetically attach to corresponding magneticattachment feature 20 whereas magnetic element 209 can be used toactivate Hall Effect sensor 120 when flap 202 is in position above coverglass 106. In this way, Hall Effect sensor 120 can respond by generatinga signal that can, in turn, be used to alter an operating state ofelectronic device 100. Since the cover can be easily attached directlyto the housing of the tablet device without fasteners, the flap 202 canessentially conform to the shape of electronic device 100. In this way,the cover 200 will not detract or otherwise obscure the look and feel ofelectronic device 100. Flap 202 can also include capacitive elements 208arranged in a defined pattern. Capacitive elements 208 can be used toactivate a multi-touch (MT) sensitive layer incorporated in displayassembly. When flap 202 is placed upon cover glass 106, the MT sensitivelayer can respond to the presence of capacitive elements 208 bygenerating a touch pattern consistent with the defined pattern. In thisway, the signal from Hall Effect sensor 120 indicating the presence offlap 202 in the closed configuration can be corroborated. Whencorroborated, tablet device 100 can accept the indication from HallEffect sensor 120 that flap 202 is in the closed configuration and reactaccordingly.

In one embodiment, flap 202 can include RFID device 210 that can be usedto identify protective cover 200. In particular, when protective cover200 is in the closed configuration, flap 202 can be in contact withcover glass 106 thereby allowing a RFID sensor within tablet device 100to “read” RFID device 210. In this way not only can the indication fromHall Effect sensor 120 be corroborated, but an identification ofprotective cover 200 can also be performed.

FIGS. 3A and 3B show protective cover 200 and tablet device 100magnetically attached to each other. FIG. 3A shows a closedconfiguration in which cover glass 106 is fully covered by and incontact with flap 202. Protective cover 200 can pivot about hingeassembly 206 from the closed configuration of FIG. 3A to an openconfiguration of FIG. 3B. In the closed configuration, inner layer offlap 202 can come in direct contact with cover glass 106. In this way,capacitive elements 208 can be detected by MT circuit disposed withinthe display assembly beneath cover glass 106. Moreover, the MT circuitcan detect a pattern, or signature, corresponding to the pattern ofcapacitive elements 208. In this way, the detection of the pattern cancorroborate the indication from Hall Effect sensor 120 that flap 202 isin contact with cover glass 106. If the pattern is not detected, thentablet device 100 can ignore the indication from Hall Effect sensor 120(or possibly use another sensor, such as ALS 116 as a further check).

In order to transition from the closed to the open configuration,releasing force F_(release) can be applied to flap 202. Releasing forceF_(release) can overcome the magnetic attractive force betweenattachment feature 207 in flap 202 and attachment feature 110 in tabletdevice 100. Hence, protective cover 200 can be secured to tablet device100 until releasing force F_(release) is applied to flap 202. In thisway, flap 202 can be used to protect cover glass 106. For example,protective cover 200 can be magnetically attached to tablet device 100.Flap 202 can then be placed upon and magnetically secured to cover glass106 by the magnetic interaction between magnetic attachment feature 20and 207. Flap 202 can be detached from cover glass 106 by theapplication of releasing force F_(release) directly to flap 202.Releasing force F_(release) can overcome the magnetic attraction betweenmagnetic attachment features 20 and 207. Hence, flap 202 can then moveaway from cover glass 106 unhindered.

FIG. 4 shows a top view of a specific embodiment of protective cover 200in the form of segmented cover 300. Segmented cover 300 can include body302. Body 302 can have a size and shape in accordance with tablet device100. Body 302 can be formed from a single piece of foldable or pliablematerial. Body 302 can also be divided into segments separated from eachother by a folding region. In this way, the segments can be folded withrespect to each other at the folding regions. In one embodiment, body302 can be formed layers of material attached to one another forming alaminate structure. Each layer can take the form of a single piece ofmaterial that can have a size and shape in conformance with body 302.Each layer can also have a size and shape that correspond to only aportion of body 302. For example, a layer of rigid or semi-rigidmaterial about the same size and shape of a segment can be attached toor otherwise associated with the segment.

In another example, a layer of rigid or semi-rigid material having asize and shape in accordance with body 302 can be used to providesegmented cover 300 as a whole with a resilient foundation. It should benoted that the layers can each be formed of materials having desiredproperties. For example, a layer of segmented cover 300 that comes incontact with delicate surfaces such as glass can be formed of a softmaterial that will not mar or otherwise damage the delicate surface. Inanother embodiment, a material such as micro-fiber can be used that canpassively clean the delicate surface. On the other hand, a layer that isexposed to the external environment can be formed of a more rugged anddurable material such as plastic or leather. In yet another embodiment,capacitive elements 208 can be incorporated within the laminatestructure of cover assembly 300.

In a specific embodiment, segmented body 302 can be partitioned into anumber of segments 304-310 interspersed with thinner, foldable portions312. Each of the segments 304-310 can include one or more insertsdisposed therein. By way of example, the segments can include a pocketregion where the inserts are placed or alternatively the inserts may beembedded within the segments (e.g., insert molding). If pockets used,the pocket region can have a size and shape to accommodate correspondinginserts. The inserts can have various shapes but are most typicallyshaped to conform to the overall look of segmented body 302 (e.g.,rectangular). The inserts can be used to provide structural support forsegmented body 302. That is, the inserts can provide stiffness to thecover assembly. In some cases, the inserts may be referred to asstiffeners. As such, the cover assembly is relatively stiff except alongthe foldable regions that are thinner and do not include the inserts(e.g., allows folding) making segmented cover 300 more robust and easierto handle. In one embodiment segments 304, 306, and 310 can be relatedto segment 308 in size in the proportion of about 0.72 to 1 meaning thatsegments 304, 306 and 310 are sized in width to be about 72% of thewidth of segment 308. In this way, a triangle having appropriate anglescan be formed (i.e., about 75° for display stand and about 11° forkeyboard stand discussed below).

Segments 306, 308, and 310 can include inserts 314, 316, and 318,respectively (shown in dotted lines form). Inserts 314-318 can be formedof rigid or semi-rigid material adding resiliency to body 302. Examplesof materials that can be used include plastics, fiber glass, carbonfiber composites, metals, and the like. Segment 304 can include insert320 also formed of resilient material such as plastic but also arrangedto accommodate magnetic elements 322 some of which can interact withmagnetic elements in table device 1100 and more specifically attachmentfeature 110. Inserts 314-318 can also incorporate capacitive elements208 that can be sensed by a MT sensitive portion of the display oftablet device 100.

Due to the ability of segmented body 302 to fold and more particularlythe various segments to fold with respect to each other, most ofmagnetic elements 322 can be used to magnetically interact withmagnetically active insert 324 embedded in insert 318. By magneticallybinding both active insert 324 and magnetic elements 322 various supportstructures can be formed some of which can be triangular in shape. Thetriangular support structures can aid in the use of tablet device 1100.For example, one triangular support structure can be used to supporttablet device 1100 in such a way that visual content can be presented ata desirable viewing angle of about 75° from horizontal. However, inorder be able to appropriately fold segmented cover 300, segment 308 canbe sized to be somewhat larger than segments 304, 306 and 310 (which aregenerally the same size). In this way, the segments can form a trianglehaving two equal sides and a longer third side, the triangle having aninterior angle of about 75°.

Cover assembly 300 can pivotally attach to accessory attachment feature202 by way of a hinge assembly. The hinge assembly can provide one ormore pivots to allow the cover to fold over on the device while thecover assembly is attached to the device through the magnets. In theillustrated embodiment, the hinge assembly can include first hingeportion (also referred to as first end lug) 328 and a second hingeportion (or second end lug) 330 disposed opposite the first end lug.First end lug 328 can be rigidly connected to second end lug 330 by wayof connecting rod 332 (shown in dotted line form) incorporated into atube portion of segmented body 302. The longitudinal axis of connectingrod 332 can act as pivot line 1333 about which the segmented body canpivot relative to the hinge assembly. Connecting rod 332 can be formedof metal or plastic strong enough to rigidly support cover assembly 300as well as any objects, such as tablet device 1100, magneticallyattached to magnetic attachment feature 202.

In order to prevent metal on metal contact, first end lug 328 and secondend lug 330 can each have protective layers 336 and 338, respectively,attached thereto. Protective layers (also referred to as bumpers) 336and 338 can prevent direct contact between first end lug 328 and secondend lug 330 with housing 102. This is particularly important when endlugs 328, 330 and housing 102 are formed of metal. The presence ofbumpers 336 and 338 can prevent metal to metal contact between the endlugs and housing 102 thereby eliminating the chance of substantial wearand tear at the point of contact that can degrade the overall look andfeel of tablet device 1100.

First end lug 328 and second end lug 330 can be magnetically connectedto the electronic device by way of hinge span 340 that is configured topivot with respect to the end lugs. The pivoting can be accomplishedusing hinge posts 342 (a portion of which can be exposed). Hinge posts342 can rotatably secure hinge span 340 to both first end lug 328 andsecond end lug 330. Hinge span 304 can include magnetic elements. Themagnetic elements can be arranged to magnetically attach hinge span 340to a magnetic attachment feature having a matching arrangement ofmagnetic elements in the electronic device. In order to fix the magneticelements in place within hinge span 340, hinge posts 342 can be used tosecure magnetic elements located at both ends of hinge span 340 reducingthe likelihood that the magnetic elements in hinge span 340 will moveabout having the potential for disrupting the magnetic attachmentbetween hinge span 340 and the magnetic attachment feature in theelectronic device.

FIGS. 5A and 5B illustrate representative magnetic interaction betweenonboard compass 118 and magnetic elements 207 and 209 in flap 202. Forthe remainder of this discussion, for sake of clarity, magnetic elements207 and 209 are presumed as a combined magnetic element ME locateddistance r from onboard compass 118. In the open configuration, distancer is a fixed distance R_(open) whereas in the closed configurationdistance r is a fixed distance R_(closed). Accordingly, onboard compass118 can detect magnetic flux density M emanating from combined magneticelement ME according to Eq. (1):

M(r)=B _(ME) /r ²  Eq. (1)

where:

-   -   B_(ME) is magnetic flux density of combined magnetic element ME        (Tesla); and    -   r is distance between combined magnetic element ME and onboard        compass 118.

Accordingly, in the open configuration, onboard compass 118 can detect amagnetic flux density according to Eq. (2):

M _(open) =B _(ME) /R _(open) ²  Eq. (2)

Whereas, in the closed configuration, onboard compass 118 can detect amagnetic flux density according to Eq. (3):

M _(closed) =B _(ME) /R _(closed) ²  Eq. (3).

However, since distance r between combined magnetic element ME andonboard compass 118 varies with pivot angle Θ, a change in magnetic fluxdensity M detected by onboard compass 118 can provide an estimation ofthe movement of flap 202 about pivot line 211. In this way, by modelingthe motion of flap 202 about pivot line 211, motion of flap 202 can bededuced by evaluating the change of the magnetic flux density M ofcombined magnetic element ME detected by compass 118 according to Eq.(4):

M(Θ)=B _(ME) /r(Θ)²  Eq. (4)

where: 0≦Θ≦π.

Since tablet device 100 cannot detect the pivoting angle Θ directly, anindirect determination can be obtained using an accelerometer andgyroscope (not shown) included in tablet device 100. The accelerometerand gyroscope can provide a spatial orientation of tablet device 100 andonboard compass 118 can detect an overall magnetic flux density(including magnetic offsets shown in FIGS. 6A and 6B) that can becompared to the dynamic model to deduce if flap 202 is rotating aboutpivot line 211.

FIGS. 6A and 6B graphically illustrate various magnetic offsets that canbe detected by onboard compass 118. For example, magnetic elements inmagnetic attachment feature 204 can create magnetic offset M1. Magneticoffset M1 can provide an indication that protective cover 200 ismagnetically attached to tablet device 100. For example, if onboardcompass 118 detects a change in magnetic flux density along the lines ofmagnetic offset M1, then onboard compass 118 can provide a correspondingsignal to a processor in tablet device 100. The processor can use thesignal to deduce that protective cover 200 has been magneticallyattached to tablet device 100.

FIG. 7 shows a flowchart detailing process 700 for confirming anindication from a Hall Effect sensor of the state of protective cover inrelation to an electronic device. Process 700 can begin at 702 bydetecting a first type stimulus at a first sensor in an electronicdevice. At 704, receiving a first signal in accordance with thedetecting the first signal indicating a first status of an accessorydevice in relation to the electronic device. At 706, detecting a secondtype stimulus at a second sensor in the electronic device. At 708,receiving a second signal in accordance with the detecting, the secondsignal indicating a second status of the accessory device in relation tothe electronic device. At 710, if the first and second status is thesame, then the first signal is accepted at 712 and process 700 ends.Otherwise, at 714 a determination is made if a signal from anothersensor is to be received. If it is determined that another signal fromanother sensor is to be received, than control is passed to 706,otherwise, the first signal is ignored at 716 and process 700 ends.

FIG. 8 shows a flowchart detailing process 800 as one embodiment of step702 of process 700 where the first sensor is a Hall Effect (HFX) sensor.More specifically, process 800 begins at 802 by receiving the indicationfrom the HFX sensor that the state of the cover is closed. At 804, anambient light sensor is activated. At 806, a determination is made ifthe ALS has detected an amount of ambient light greater than a thresholdvalue of ambient light. If the amount of detected ambient light isgreater than the threshold value, then the indication from the HFXsensor that the cover is closed is not corroborated and the indicationfrom the HFX sensor that the cover is closed is ignored at 808,otherwise, the electronic device accepts the indication from the HFXsensor at 810.

FIG. 9 shows a flowchart detailing process 900 as one embodiment of step702 of process 700 where the first sensor is a Hall Effect (HFX) sensor.More specifically, process 900 begins at 902 by receiving the indicationfrom the HFX sensor that the state of the cover is closed. At 904, acamera is activated and at 906 a determination is made whether or not animage has been captured by the camera. If at 906 it is determined thatthe camera has not captured an image, then the indication from the HFXsensor that the cover is closed is accepted at 908. On the other hand,if at 906 it is determined that the camera has captured an image, thenthe indication from the HFX sensor that the cover state is closed is notcorroborated and the indication from the HFX sensor is ignored by theelectronic device at 910.

FIG. 10 shows a flowchart detailing process 1000 as one embodiment ofstep 702 of process 700 where the first sensor is a Hall Effect (HFX)sensor. More specifically, process 1000 begins at 1002 by receiving theindication from the HFX sensor that the state of the cover is closed. At1004, a magnetic field is detected at the compass and at 1006 adetermination is made whether or not the detected magnetic field isconsistent with a hard magnetic offset resulting from the presence ofmagnetic elements in the cover. If at 1006 it is determined that thethere is no hard offset detected, then the indication from the HFXsensor that the cover is closed is not corroborated and the electronicdevice ignores the indication from the HFX sensor at 1008. On the otherhand, if at 1006 it is determined that the hard offset is detected, thenthe indication from the HFX sensor that the cover state is closed iscorroborated and the indication from the HFX sensor is accepted by theelectronic device at 1010.

FIG. 11 shows a flowchart detailing process 1100 as one embodiment ofstep 702 of process 700 where the first sensor is a Hall Effect (HFX)sensor. More specifically, process 1100 begins at 1102 by receiving theindication from the HFX sensor that the state of the cover is closed. At1104, a MT event is detected at a MT sensitive surface. At 1106, adetermination is made if the MT event matches an MT signature consistentwith the cover state being closed. If the MT signature is determined tobe consistent with the cover state being closed, then at 1108, theelectronic device accepts the indication from the HFX sensor. On theother hand, if the MT event does not match the MT signature, then theelectronic device ignores the indication from the HFX sensor at 1110 andprocess 1100 ends.

FIG. 12 shows a flowchart detailing process 1200 as one embodiment ofstep 702 of process 700 where the first sensor is a Hall Effect (HFX)sensor. More specifically, process 1200 begins at 1202 by receiving theindication from the HFX sensor that the state of the cover is closed. At1204, an RFID signature is detected. At 1206, a determination is made ifthe RFID signature matches an RFID signature consistent with the cover.If the RFID signature is determined to be consistent with the cover,then at 1208, the electronic device accepts the indication from the HFXsensor. On the other hand, if the RFID signature is not consistent withthe cover, then the electronic device ignores the indication from theHFX sensor at 1210 and process 1200 ends.

FIG. 13 shows a flowchart detailing process 1300. More specifically,process 1300 begins at 1302 using an accelerometer and gyroscope in realtime to detect a current spatial position and rotation of the electronicdevice. At 1304, an extrinsic magnetic field is detected by amagnetometer (in the form of the compass). At 1306, a resulting dynamicmagnetic field is provided in real time based upon the accelerometer andgyroscope readings and the compass readings, the resulting magneticfield being a net magnetic field of all extrinsic magnetic fieldsmeasured at the compass. The net magnetic field is updated in real timebased upon the current spatial position and rotation of the electronicdevice to provide a dynamic resulting magnetic that is compared at 1308to a reference datum of the dynamic magnetic field consistent with nocover present. At 1310, a deviation of the measured dynamic magneticfield and the reference datum is determined. If the deviation is lessthan a threshold deviation value, then the cover is not present and theelectronic device ignores the indication from the HFX sensor at 1312. Onthe other hand, if the deviation is greater than the threshold deviationvalue, then the cover is present and the electronic device accepts theindication from the HFX sensor at 1314.

FIG. 14 is a block diagram of an electronic device 1450 suitable for usewith the described embodiments. The electronic device 1450 illustratescircuitry of a representative computing device. The electronic device1450 includes a processor 1452 that pertains to a microprocessor orcontroller for controlling the overall operation of the electronicdevice 1450. The electronic device 1450 stores media data pertaining tomedia items in a file system 1454 and a cache 1456. The file system 1454is, typically, a storage disk or a plurality of disks. The file system1454 typically provides high capacity storage capability for theelectronic device 1450. However, since the access time to the filesystem 1454 is relatively slow, the electronic device 1450 can alsoinclude a cache 1456. The cache 1456 is, for example, Random-AccessMemory (RAM) provided by semiconductor memory. The relative access timeto the cache 1456 is substantially shorter than for the file system1454. However, the cache 1456 does not have the large storage capacityof the file system 1454. Further, the file system 1454, when active,consumes more power than does the cache 1456. The power consumption isoften a concern when the electronic device 1450 is a portable mediadevice that is powered by a battery 1474. The electronic device 1450 canalso include a RAM 1470 and a Read-Only Memory (ROM) 1472. The ROM 1472can store programs, utilities or processes to be executed in anon-volatile manner. The RAM 1470 provides volatile data storage, suchas for the cache 1456.

The electronic device 1450 also includes a user input device 1458 thatallows a user of the electronic device 1450 to interact with theelectronic device 1450. For example, the user input device 1458 can takea variety of forms, such as a button, keypad, dial, touch screen, audioinput interface, visual/image capture input interface, input in the formof sensor data, etc. Still further, the electronic device 1450 includesa display 1460 (screen display) that can be controlled by the processor1452 to display information to the user. A data bus 1466 can facilitatedata transfer between at least the file system 1454, the cache 1456, theprocessor 1452, and the CODEC 1463.

In one embodiment, the electronic device 1450 serves to store aplurality of media items (e.g., songs, podcasts, etc.) in the filesystem 1454. When a user desires to have the electronic device play aparticular media item, a list of available media items is displayed onthe display 1460. Then, using the user input device 1458, a user canselect one of the available media items. The processor 1452, uponreceiving a selection of a particular media item, supplies the mediadata (e.g., audio file) for the particular media item to a coder/decoder(CODEC) 1463. The CODEC 1463 then produces analog output signals for aspeaker 1464. The speaker 1464 can be a speaker internal to theelectronic device 1450 or external to the electronic device 1450. Forexample, headphones or earphones that connect to the electronic device1450 would be considered an external speaker.

The electronic device 1450 also includes a network/bus interface 1461that couples to a data link 1462. The data link 1462 allows theelectronic device 1450 to couple to a host computer or to accessorydevices. The data link 1462 can be provided over a wired connection or awireless connection. In the case of a wireless connection, thenetwork/bus interface 1461 can include a wireless transceiver. The mediaitems (media assets) can pertain to one or more different types of mediacontent. In one embodiment, the media items are audio tracks (e.g.,songs, audio books, and podcasts). In another embodiment, the mediaitems are images (e.g., photos). However, in other embodiments, themedia items can be any combination of audio, graphical or visualcontent. Sensor 1476 can take the form of circuitry for detecting anynumber of stimuli. For example, sensor 1476 can include a Hall Effectsensor responsive to external magnetic field, an audio sensor, a lightsensor such as a photometer, and so on.

The various aspects, embodiments, implementations or features of thedescribed embodiments can be used separately or in any combination.Various aspects of the described embodiments can be implemented bysoftware, hardware or a combination of hardware and software. Thedescribed embodiments can also be embodied as computer readable code ona non-transitory computer readable medium. The computer readable mediumis defined as any data storage device that can store data which canthereafter be read by a computer system. Examples of the computerreadable medium include read-only memory, random-access memory, CD-ROMs,DVDs, magnetic tape, and optical data storage devices. The computerreadable medium can also be distributed over network-coupled computersystems so that the computer readable code is stored and executed in adistributed fashion.

The foregoing description, for purposes of explanation, used specificnomenclature to provide a thorough understanding of the describedembodiments. However, it will be apparent to one skilled in the art thatthe specific details are not required in order to practice the describedembodiments. Thus, the foregoing descriptions of the specificembodiments described herein are presented for purposes of illustrationand description. They are not target to be exhaustive or to limit theembodiments to the precise forms disclosed. It will be apparent to oneof ordinary skill in the art that many modifications and variations arepossible in view of the above teachings.

The advantages of the embodiments described are numerous. Differentaspects, embodiments or implementations can yield one or more of thefollowing advantages. Many features and advantages of the presentembodiments are apparent from the written description and, thus, it isintended by the appended claims to cover all such features andadvantages of the invention. Further, since numerous modifications andchanges will readily occur to those skilled in the art, the embodimentsshould not be limited to the exact construction and operation asillustrated and described. Hence, all suitable modifications andequivalents can be resorted to as falling within the scope of theinvention.

1-26. (canceled)
 27. An electronic device, comprising: a displayassembly comprising a top protective layer; a magnetometer configured todetect an external magnetic field that propagates through the topprotective layer and to provide a first detection signal, the externalmagnetic field provided by an external magnetic element; a mechanism fordetermining a current spatial orientation of the electronic device withrespect to an inertial reference frame; and a processor in communicationwith the magnetometer and the mechanism, the processor configured toevaluate the first detection signal for a stationary magnetic fieldcomponent and a dynamic magnetic field component and using theevaluation of the first detection signal in combination with the currentorientation of the electronic device to provide a current position ofthe external magnetic element with respect to the electronic device,wherein the processor is further configured to alter an operating stateof the electronic device in accordance with a current position of themagnetic element with respect to the electronic device.
 28. Theelectronic device as recited in claim 27, wherein the processor isconfigured to alter an operating state of the electronic device to afirst operating state when the current position of the magnetic elementis determined to be a first predefined position.
 29. The electronicdevice as recited in claim 28, wherein the external magnetic element isdisposed within a flexible flap that is pivotally coupled to theelectronic device about an axis both parallel and proximate to a firstside of the electronic device.
 30. The electronic device as recited inclaim 29, further comprising: an ambient light sensor (ALS), the ALSdisposed proximate the display assembly and configured to provide asecond detection signal to the processor when an amount of lightdetected by the ALS falls below a predetermined threshold, wherein theprocessor is configured to utilize the second detection signal providedby the ALS to corroborate the current position of the magnetic element,the light falling below the predetermined threshold indicative of asecond predefined position of the magnetic element in which the flexibleflap covers the ALS, and wherein the processor is only configured toalter the operating state of the electronic device in accordance withthe second predefined position when the provided current position is thesecond position and the light detected by the ALS falls below thepredetermined threshold.
 31. The electronic device as recited in claim29, wherein the flexible flap further comprises a plurality ofcapacitive elements arranged in a first pattern across a first surfaceof the flexible flap.
 32. The electronic device as recited in claim 31,wherein when the magnetic element is in a third predefined position thecapacitive elements of the flexible flap are proximate the displayassembly, the display assembly further comprising a multi-touch circuitconfigured to recognize the first pattern of the capacitive elementswhen the magnetic element is in the third predefined position.
 33. Theelectronic device as recited in claim 32, wherein the processor is onlyconfigured to alter the operating state of the electronic device inaccordance with the third predefined position when the first pattern ofthe capacitive elements is recognized by the multi-touch circuit.
 34. Aconsumer electronic product, comprising: an electronic device,comprising: a processor, a display assembly comprising a top protectivecover, a magnetometer configured to detect a magnetic field and toprovide a first detection signal, and a mechanism for determining acurrent spatial orientation of the electronic device with respect to aninertial reference frame; and a flexible flap pivotally coupled to afirst side of the electronic device at a first end of the flexible flap,the flexible flap comprising a magnetic element disposed proximate asecond end of the flexible flap, the second end opposite the first end,wherein the processor is in communication with the magnetometer and themechanism, and configured to evaluate the first detection signal for astationary magnetic field component and a dynamic magnetic fieldcomponent and using the evaluation of the first detection signal incombination with the current orientation of the electronic device toprovide a current position of the external magnetic element with respectto the electronic device, and wherein the processor is furtherconfigured to alter an operating state of the electronic device inaccordance with the provided current position of the magnetic element.35. The consumer electronic product as recited in claim 34, wherein thefirst end of the flexible flap comprises a hinge detachably coupled tothe electronic device, the hinge comprising a plurality of magneticelements which couple the hinge to the first side of the electronicdevice.
 36. The consumer electronic product as recited in claim 35,wherein the processor is configured to place the electronic device in afirst operating state when the first detection signal is consistent witha presence of the plurality of magnets of the hinge and is configured toplace the electronic device in a second operating state when the firstdetection signal is not consistent with the presence of the plurality ofmagnets.
 37. The consumer electronic product as recited in claim 34,wherein the magnetometer is a compass.
 38. The consumer electronicproduct as recited in claim 34, wherein the second end of the flexibleflap comprises a plurality of magnets configured to magnetically couplethe second end of the flexible flap to a portion of the electronicdevice proximate to a second side of the electronic device, the secondside opposite the first side of the electronic device.
 39. The consumerelectronic product as recited in claim 38, wherein the electronic devicefurther comprises a Hall Effect (HFX) sensor, the HFX sensor disposedwithin the electronic device such that when the flexible flap ismagnetically coupled to the second end, the magnetic element isproximate to the HFX sensor, and wherein the processor is configured tocorroborate the determined current position of the magnetic element bycomparing information received by the HFX sensor to the determinedcurrent position of the magnetic element.
 40. The consumer electronicproduct as recited in claim 34, wherein the mechanism comprises agyroscope.
 41. In a consumer electronic product comprising an electronicdevice, a method performed by a processor in the electronic devicecomprising: detecting a spatial orientation of the electronic devicewith respect to an inertial reference frame by a gyroscope; detecting afirst magnetic field by a magnetometer; receiving both a first signalfrom the gyroscope and a second signal from the magnetometer at theprocessor; evaluating the detected magnetic field for a stationarymagnetic field component and a dynamic magnetic field component; usingthe evaluation of the magnetic field in combination with the detectedspatial orientation to determine a current pivot angle of a flexibleflap having at least one magnetic element with respect to the electronicdevice at the processor; and changing an operating state of theelectronic device in accordance with the current pivot angle of theflexible flap.
 42. The method as recited in claim 41, wherein thespatial orientation detected by the gyroscope is refined by anaccelerometer, the first signal comprising the refined spatialorientation of the electronic device.
 43. The method as recited in claim41, wherein the determining the pivot angle further comprises comparingthe detected magnetic field and spatial orientation to a dynamicmagnetic field model stored on the electronic device.
 44. The method asrecited in claim 41, further comprising: activating a multi-touchcircuit of a display of the electronic device to detect whether apattern of capacitive elements disposed on a first surface of theflexible flap is proximate to the display; and corroborating the currentpivot angle of the flexible flap when the capacitive elements of theflexible flap are detected by the multi-touch circuit of the display.45. The method as recited in claim 44, wherein when the flexible flap isnot determined to be covering the display of the electronic device theoperating is configured such that the display of visual content isenabled.
 46. The method as recited in claim 41, wherein the evaluationof the stationary and dynamic magnetic field component comprisesdetermining whether an error is present in the determined pivot anglethat is being caused because of movement of the flexible flap relativeto the magnetometer.